package com.heatup.apt.model.course;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.heatup.apt.model.Resource;
import com.heatup.apt.model.Resource;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@TableName("course_standard")
public class CourseStandard implements Serializable {


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标准课程名
     */
    private String name;

    /**
     * 管理员(教练ID)
     */
    private String manager;

    /**
     * 适应人群
     */
    private String crowd;

    /**
     * 课程属性
     */
    @TableField(value = "course_attr")
    private String courseAttr;

    /**
     * 课程说明
     */
    private String introduce;

    /**  */
    @TableField(value = "created_by")
    private Integer createdBy;

    /**  */
    @TableField(value = "created_time")
    private Date createdTime;

    /**  */
    @TableField(value = "updated_by")
    private Integer updatedBy;

    /**  */
    @TableField(value = "updated_time")
    private Date updatedTime;

    /**
     * 逻辑删除用。 1:正常。 4:已删除。
     */
    @TableField(value="status")
    private String status;

    @TableField(exist = false)
    private List<Integer> attr;

    @TableField(exist = false)
    private String url;

    @TableField(exist = false)
    private String link;

    @TableField(exist = false)
    private String categoryPic;

    @TableField(exist = false)
    private List<Resource> resources;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getCrowd() {
        return crowd;
    }

    public void setCrowd(String crowd) {
        this.crowd = crowd;
    }

    public String getCourseAttr() {
        return courseAttr;
    }

    public void setCourseAttr(String courseAttr) {
        this.courseAttr = courseAttr;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Integer updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<Integer> getAttr() {
        return attr;
    }

    public void setAttr(List<Integer> attr) {
        this.attr = attr;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getCategoryPic() {
        return categoryPic;
    }

    public void setCategoryPic(String categoryPic) {
        this.categoryPic = categoryPic;
    }

    public List<Resource> getResources() {
        return resources;
    }

    public void setResources(List<Resource> resources) {
        this.resources = resources;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CourseStandard{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", manager='").append(manager).append('\'');
        sb.append(", crowd='").append(crowd).append('\'');
        sb.append(", courseAttr='").append(courseAttr).append('\'');
        sb.append(", introduce='").append(introduce).append('\'');
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", status='").append(status).append('\'');
        sb.append(", attr=").append(attr);
        sb.append(", url='").append(url).append('\'');
        sb.append(", link='").append(link).append('\'');
        sb.append(", categoryPic='").append(categoryPic).append('\'');
        sb.append(", resources=").append(resources);
        sb.append('}');
        return sb.toString();
    }
}